package com.yunhe.common.client;

import com.yunhe.common.client.fallback.WebItemClientFallbackFactory;
import com.yunhe.common.model.ResultObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName WebItemClient
 * @Description TODO
 * @Author HeTao
 * @Date 2021/3/1 9:37
 * @Version 1.0
 **/
@FeignClient(value = "http://yh-option", fallbackFactory = WebItemClientFallbackFactory.class)
public interface WebItemClient {


    @RequestMapping(value = "/item/getItemByItemCodeAndEnumName", method = RequestMethod.GET)
    ResponseEntity<ResultObject> getItemByItemCodeAndEnumName(@RequestParam(value = "name") String name);
}
